<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        const data = [{
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "th"
                },
                "nodes": [{
                    "object": "text",
                    "text": "手机型号",
                    "marks": [{
                        "object": "mark",
                        "type": "bold",
                        "data": {}
                    }]
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "th"
                },
                "nodes": [{
                    "object": "text",
                    "text": "model 返回值",
                    "marks": [{
                        "object": "mark",
                        "type": "bold",
                        "data": {}
                    }]
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone1,1",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 3G",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone1,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 3GS",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone2,1",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 4",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone3,1 / iPhone3,2 / iPhone3,3",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 4S",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone4,1",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 5",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone5,1 / iPhone5,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 5C",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone5,3 / iPhone5,4",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 5S",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone6,1 / iPhone6,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 6",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone7,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 6 Plus",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone7,1",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 6S",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone8,1",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 6S Plus",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone8,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 7",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone9,1 / iPhone9,3",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 7 Plus",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone9,2 / iPhone9,4",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 8",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone10,1 / iPhone10,4",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 8 Plus",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone10,2 / iPhone10,5",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone X",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone10,3 / iPhone10,6",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone XR",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone11,8",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone XS",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone11,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 11",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone12,1",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 11 Pro",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone12,3",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone XS Max",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone11,6 / iPhone11,4",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "Phone 11 Pro Max",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone12,5",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 12 mini",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone13,1",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 12",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone13,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 12 Pro",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone13,3",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 12 Pro Max",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone13,4",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone SE",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone14,6",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 13 mini",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone14,4",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 13",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone14,5",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 13 Pro",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone14,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 13 Pro Max",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone14,3",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 14",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone14,7",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 14 Plus",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone14,8",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 14 Pro",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone15,2",
                    "marks": []
                }]
            }]
        }, {
            "object": "block",
            "type": "table-row",
            "data": {},
            "nodes": [{
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone 14 Pro Max",
                    "marks": []
                }]
            }, {
                "object": "block",
                "type": "table-cell",
                "data": {
                    "attrs": {},
                    "style": {},
                    "cellType": "td"
                },
                "nodes": [{
                    "object": "text",
                    "text": "iPhone15,3",
                    "marks": []
                }]
            }]
        }]
        const map = {}
        data.forEach(item => {
            const children = item.nodes || []
            let key = ''
            let value = ''
            children.forEach((val, index) => {
                const son = val.nodes || []
                son.forEach((it) => {
                    if (!index) {
                        value = it.text
                    } else {
                        key = it.text
                    }

                })
            })
            const keyArray = key.split(/\s\/\s/)
            keyArray.forEach(objKey => {
                map[objKey] = value
            })
        })
        console.log(map);
    </script>
</head>

<body>

</body>

</html>